
.w_100 {
	width: 100%;
}
.h_100 {
	height: 100%;
}
.h_100vh {
	height: 100vh;
}
.u-relative,
.u-rela {
	position: relative;
}

.u-absolute,
.u-abso {
	position: absolute;
}

.u-fixed,
.u-fix {
	position: fixed;
}

.u-flex {
	/* #ifndef APP-NVUE */
	display: flex;
	/* #endif */
	flex-direction: row;
	align-items: center;
}

.u-flex1{
	flex: 1 !important;
}

.u-flex-col {
	/* #ifndef APP-NVUE */
	display: flex;
	/* #endif */
	flex-direction: column;
}

.u-flex-nvue{
	flex-direction: row;
	flex-wrap: wrap;
	width: 200rpx;//需要手动调试,匹配宽度和合适的字符数
	justify-content: space-between;
}

.u-flex-wrap {
	flex-wrap: wrap;
}

.u-flex-nowrap {
	flex-wrap: nowrap;
}

.u-col-center {
	align-items: center;
}

.u-col-top {
	align-items: flex-start;
}

.u-col-bottom {
	align-items: flex-end;
}

.u-row-center {
	justify-content: center;
}

.u-row-left {
	justify-content: flex-start;
}

.u-row-right {
	justify-content: flex-end;
}

.u-row-between {
	justify-content: space-between;
}

.u-row-around {
	justify-content: space-around;
}

.u-row-evenly {
	justify-content:  space-evenly;
}

.u-hidden {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.u-inlineBlock{
	display: inline-block;
}

.u-text-left {
	text-align: left;
}

.u-text-center {
	text-align: center;
}

.u-text-right {
	text-align: right;
}

.u_inline-block{
	display: inline-block;
}

.u_decoration{
	text-decoration: line-through;
}

.wordBreak{
	word-break: break-word;
}

.text-cut {
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
}
.text-cut-2 {
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.text-cut-3 {
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

//元素穿透
.pointer-none{
	pointer-events:none
}


// 定义宽度
@for $i from 0 through 750 {
	.u-w-#{$i} {
		width: $i + rpx !important;
	}
}

// 定义高度
@for $i from 0 through 550 {
	.u-h-#{$i} {
		height: $i + rpx !important;
	}
}

// 定义line-height
@for $i from 0 through 100 {
	.u-l-h-#{$i} {
		line-height: $i + rpx !important;
	}
}

// 定义border-radius
@for $i from 0 through 100 {
	.u-b-r-#{$i} {
		border-radius: $i + rpx !important;
	}
}

// 定义字体(rpx)单位，大于或等于20的都为rpx单位字体
@for $i from 20 through 50 {
	.u-font-#{$i} {
		font-size: $i + rpx !important;
	}
}

// 定义内外边距
@for $i from 0 through 300 {
	// 只要双数和能被5除尽的数
	@if $i % 2 == 0 or $i % 5 == 0 {
		// 得出：u-margin-30或者u-m-30
		.u-margin-#{$i}, .u-m-#{$i} {
			margin: $i + rpx!important;
		}
		
		// 得出：u-padding-30或者u-p-30
		.u-padding-#{$i}, .u-p-#{$i} {
			padding: $i + rpx!important;
		}
		
		@each $short, $long in l left, t top, r right, b bottom {
			// 缩写版，结果如： u-m-l-30
			// 定义外边距
			.u-m-#{$short}-#{$i} {
				margin-#{$long}: $i + rpx!important;
			}
			
			// 定义内边距
			.u-p-#{$short}-#{$i} {
				padding-#{$long}: $i + rpx!important;
			}
			
			// 完整版，结果如：u-margin-left-30
			// 定义外边距
			.u-margin-#{$long}-#{$i} {
				margin-#{$long}: $i + rpx!important;
			}
			
			// 定义内边距
			.u-padding-#{$long}-#{$i} {
				padding-#{$long}: $i + rpx!important;
			}
		}
	}
}

